package com.shuhua.taskServer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shuhua.pojo.entity.TaskHandle;
import com.shuhua.taskServer.mapper.TaskHandleMapper;
import com.shuhua.taskServer.service.TaskHandleService;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;

@Service
public class TaskHandleServiceImpl extends ServiceImpl<TaskHandleMapper, TaskHandle> implements TaskHandleService {
    @Override
    public List<Map<String, Object>> getHandleWithResourcesByHandleId(Long handleId) {
        return this.baseMapper.selectHandleWithResourcesByHandleId(handleId);
    }
    @Override
    public List<Map<String, Object>> getHandleWithResourcesByTaskId(Long taskId) {
        return this.baseMapper.selectHandleWithResourcesByTaskId(taskId);
    }
    @Override
    public List<Map<String, Object>> listHandleWithResources() {
        return this.baseMapper.selectAllHandleWithResources();
    }
} 